package com.offcn.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: wy
 * @Date: 2022/9/23 17:41
 */
@Component
public class listener04 {

    @RabbitListener(queues = "direct01")
    public void receive01(String message) {
        System.out.println("receive01:" + message);

    }

    @RabbitListener(queues = "direct02")
    public void receive02(String message) {
        System.out.println("receive02:" + message);
    }
}
